do additional casts to silence warnings from compiler.
authorØyvind Kolås <ok@src.gnome.org>
Sun, 25 Nov 2007 23:00:14 +0000 (23:00 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Sun, 25 Nov 2007 23:00:14 +0000 (23:00 +0000)
* babl/babl-image.c: (babl_image_from_linear): do additional casts to
silence warnings from compiler.

svn path=/trunk/; revision=255

ChangeLog
babl/babl-image.c

index 7db9d1b51a4714f7d2180eada3fc38d09d17cc1c..959e190b9234a651edefe7404bc6c86fd2a31727 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-25  Øyvind Kolås  <pippin@gimp.org>
+
+       * babl/babl-image.c: (babl_image_from_linear): do additional casts to
+       silence warnings from compiler.
+
 2007-11-25  Øyvind Kolås  <pippin@gimp.org>
 
        * docs/index-static.html.in: changed documentation to use babl_format
index 4e37433feafb1de3c848667ef6eafeacd1682ebe..a58663260155e564df7e8130ebe0cc0433685a55 100644 (file)
@@ -149,7 +149,7 @@ babl_image_from_linear (char *buffer,
     }
 
   babl = image_new (
-    (BablFormat *) format!=model?format:NULL,
+    ((void*)format!=(void*)model)?(BablFormat*)format:NULL,
     model, components,
     component, sampling, type, data, pitch, stride);
   return babl;